import { createBrowserRouter } from "react-router-dom"
import ErrorPage from "@/pages/error-page"
import App from "@/App"
import routes from "./generatedRoutes"

const router = createBrowserRouter([
  {
    path: "/",
    element: <App />,
    errorElement: <ErrorPage />,
    children: [...routes],
  },
])
export default router
